package cz.destil.settleup.gui;

import java.io.Serializable;

public class MultiChoiceItem {
    private boolean isChecked;
    private String  text;
    private long    userInfo;

    public MultiChoiceItem() {
    }

    public MultiChoiceItem(String text, boolean isChecked, long userInfo) {
        this.text = text;
        this.isChecked = isChecked;
        this.userInfo = userInfo;
    }

    public boolean isChecked() {
        return isChecked;
    }

    public void setIsChecked(boolean isChecked) {
        this.isChecked = isChecked;
    }

    public void setText(String text) {
        this.text = text;
    }

    public void setUserInfo(long userInfo) {
        this.userInfo = userInfo;
    }

    public String text() {
        return text;
    }

    @Override
    public String toString() {
        return text;
    }

    public Serializable userInfo() {
        return userInfo;
    }
}
